import request from '@/utils/request'

// 查询班组建设列表
export function listClass(data) {
  return request({
    url: '/coordination/class/list',
    method: 'post',
    data: data
  })
}

// 查询班组建设详细
export function getClass(classId) {
  return request({
    url: '/coordination/class/' + classId,
    method: 'get'
  })
}

// 新增班组建设
export function addClass(data) {
  return request({
    url: '/coordination/class',
    method: 'post',
    data: data
  })
}

// 修改班组建设
export function updateClass(data) {
  return request({
    url: '/coordination/class',
    method: 'put',
    data: data
  })
}

// 删除班组建设
export function delClass(classId) {
  return request({
    url: '/coordination/class/' + classId,
    method: 'delete'
  })
}
